<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="#stats/uninstall/">卸载问卷统计</a>
            </li>
        </ol>
    </div>
    <div class="topbar-right">
        <div class="ml15 ib va-m" id="toggle_sidemenu_r">
            <a href="#" class="pl5"> <i class="fa fa-sign-in fs22 text-primary"></i>
            </a>
        </div>
    </div>
</header>

<section id="content" class="animated fadeIn">
    <div class="panel overflow" >
        <table class="table table-striped fs13" id="main-list">
            <thead>
                <tr class="bg-light">
                    <th>设备ID</th>
                    <th>机型</th>
                    <th>运行次数</th>
                    <th class="sortable" data-field="created_at">首次运行时间</th>
                    <th class="sortable" data-field="remove_at">卸载时间</th>
                    <th class="sortable" data-field="total_pay">消费金额</th>
                </tr>
            </thead>
            <tbody class="admin-form">
                <% _.each(items, function(item){ %>
                    <tr data-id="<%= item._id %>" >
                        <td><%= item._id %></td>
                        <td><%= item.type %></td>
                        <td><%= item.run_count || 0 %></td>
                        <td><%= item.created_at %></td>
                        <td><%= item.remove_at %></td>
                        <td><%= item.total_pay || 0 %></td>
                    </tr>
                <%
                }) %>
            </tbody>
        </table>
    </div>

    <div><div class="pull-left" id="page-tips"></div><div id="paginator"></div></div>
</section>

<!-- Start: Right Sidebar -->
<aside id="sidebar_right" class="nano">
    <div class="p20 admin-form">
        <h4 class="mt5 text-muted fw500">总体数据：</h4>
        <hr class="short">
        <h5 class="title-divider text-muted mb20">卸载总人数<span class="pull-right"> <%= overview.uninstall.total_count %> </span> </h5>
        <h5 class="title-divider text-muted mb20"> 平均打开次数 <span class="pull-right"> <%= Math.round(overview.uninstall.run_count / overview.uninstall.total_count) %> </span> </h5>
        <h5 class="title-divider text-muted mb20"> 参与消费人数 <span class="pull-right"> <%= overview.uninstall.pay_count %> </span> </h5>
        <h5 class="title-divider text-muted mb20"> 今日卸载人数 <span class="pull-right"> <%= overview.uninstall.today_count %> </span> </h5>
        <hr class="short">

        <h6 class="fw400">答案分布</h6>
        <div class="section row" id="reasonDist">

        </div>


    </div>
</aside>
<!-- End: Right Sidebar -->
